<div class="row">
	<div class="col-lg-12">
		<h1 class="site-h1" style="background-color:#FFFFFF;">
			账单明细<#if billlist??>（${billlist.totalElements!''}）</#if>
		</h1>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12">
				<table class="layui-table" lay-skin="line" id="example-basic">
				  <thead>
					<tr>
				        <th>用户名</th>
					    <th>手机</th>
					    <th>支付类型</th>
					    <th>支付金额</th>
					    <th>支付时间</th>
					    <th>购买案例名</th>
					    <th>作者</th>
					</tr> 
				  </thead>
				  <tbody>
					<#if billlist?? && billlist??>
					<#list billlist.content as list>
					<tr>
					    <td class="add">${list.user.username!''}</td>
					    <td>${list.user.mobile!''}</td>
					    <td>${list.paymentType!''}</td>
					    <td>
					     	<#if (list.totalAmount)??>
								￥${list.totalAmount!?string('0.00')}
							</#if>
					     </td>
					    <td>
							<#if (list.paymentTime)??>
								${list.paymentTime!?string("yyyy-MM-dd")}
							</#if>
						</td>
					    <td>${list.microcaseTitle!''}</td>
					    <td>${list.microcase.author!''}</td>
					</tr>
					</#list>
					</#if>
				  </tbody>
				</table>
			</div> 	   
		</div>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12" id="page" style="text-align:center;"></div>
		</div>
	</div>	
</div>
<script>

var billlist = [];

<#list billlist.content as list>
billlist.push({"microcase.title":"${list.microcase.title!''}","totalAmount":"${list.totalAmount!''}","user.username":"${list.user.username!''}","paymentTime":"${list.paymentTime}"});
</#list>

console.log("billlist==》",billlist);

layui.use(['laypage', 'layer','form','laydate'], function(){
  var laypage = layui.laypage
  ,layer = layui.layer;
  laypage({
		cont: 'page'
		,pages: <#if billList??>${billList.totalPages}<#else>0</#if> //总页数
		,curr:<#if billList??>${billList.number+1}<#else>0</#if>
		,groups: 5 //连续显示分页数
		,jump:function(data , first){
			if(!first){
				location.href = "/admin/wdeposit/incomeList.html?p="+data.curr ;
			}
		}
   });
});
</script>